//
//  JYShopModel.h
//  JYFarm
//
//  Created by 花花 on 2017/10/18.
//  Copyright © 2017年 花花. All rights reserved.
//

#import "BaseModel.h"

@interface JYShopModel : BaseModel


@property(nonatomic,copy)NSString *icon; //图片

@property(nonatomic,copy)NSString *title; //商品名


@property (copy, nonatomic) NSString *price;//价格

@property (copy, nonatomic) NSString *oldPrice;//老价格


@property (nonatomic, assign) NSInteger productQty;         //商品数

@property (nonatomic, assign) NSInteger productStocks;      //库存


@property(assign,nonatomic)BOOL selected; //用来标识状态(是否勾选)






@property (nonatomic, assign) int count;
@property (assign, nonatomic) NSInteger buyCount; //购买数量


+ (instancetype)initWithDic:(NSDictionary *)dic;

/**
 是否选中 图片 商品名 价格   老价格 商品数 库存    个/斤
 
 */
//@property(nonatomic,copy)NSString *icon; //图片
//
//@property(nonatomic,copy)NSString *title; //商品名
//
//
//@property (copy, nonatomic) NSString *price;//价格
//
//@property (copy, nonatomic) NSString *oldPrice;//老价格
//
//
//@property (nonatomic, assign) NSInteger productQty;         //商品数
//
//@property (nonatomic, assign) NSInteger productStocks;      //库存
//
//
//@property(assign,nonatomic)BOOL selected; //用来标识状态(是否勾选)
//
///*
// "userId":"cfdd103c-f7ac-495d-b92b-eeb67a1d1e3b",
// "goodsId":"5",
// "goodsName":"白菜11",
// "goodsPictureUrl":"http://baidu.com",
// "goodsPrice":1.5,
// "goodsAmount":10,
// "originalprice":0,
// "deletShoppingTrolleyType":0
// 
// */
@property(nonatomic,copy)NSString *userId; //商户id


@property(nonatomic,copy)NSString *goodsId; //商品id

@property(nonatomic,copy)NSString *goodsName; //商品名称

@property(nonatomic,copy)NSString *goodsPictureUrl; //商品图片地址


@property(nonatomic,assign)NSInteger goodsAmount; //商品数量

@property(nonatomic,copy)NSString *originalprice; //原价格

@property(nonatomic,copy)NSString *goodsPrice;//商品价格

@property(nonatomic,copy)NSString *unit; //单位

@property(nonatomic,copy)NSString *deletShoppingTrolleyType; //

//
//
//
//
//@property (nonatomic, assign) int count;
//@property (assign, nonatomic) NSInteger buyCount; //购买数量
//
//
//+ (instancetype)initWithDic:(NSDictionary *)dic;
@end
